From 8c84af70b656678dea7845eee6acbfe7ced6d6f9 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Tue, 29 Sep 2015 01:22:02 -0700 Subject: [PATCH] Actually declare the base LoadMonior::clearCaches This fixes IDEA errors in LoadBalancer::clearLagTimeCache Change-Id: Ibd863ef6bc670a29f65821e3f3cd9d721a652b9a --- includes/db/loadbalancer/LoadMonitor.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/includes/db/loadbalancer/LoadMonitor.php b/includes/db/loadbalancer/LoadMonitor.php index 4975ea19dd..03ce787dd2 100644 --- a/includes/db/loadbalancer/LoadMonitor.php +++ b/includes/db/loadbalancer/LoadMonitor.php @@ -51,6 +51,12 @@ interface LoadMonitor { * @return array Map of (server index => seconds) */ public function getLagTimes( $serverIndexes, $wiki ); + + /** + * Clear any process and persistent cache of lag times + * @since 1.26 + */ + public function clearCaches(); } class LoadMonitorNull implements LoadMonitor { @@ -63,4 +69,8 @@ class LoadMonitorNull implements LoadMonitor { public function getLagTimes( $serverIndexes, $wiki ) { return array_fill_keys( $serverIndexes, 0 ); } + + public function clearCaches() { + + } } -- 2.20.1